package com.ivan.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;

public class DateUtil {

	public static String now(){
		SimpleDateFormat sdf = new SimpleDateFormat("MM-dd HH:mm:ss");
		sdf.setTimeZone(TimeZone.getTimeZone("GMT+8"));
		String date = sdf.format(new Date());
		return date;
	}
	
	public static void main(String[] args){
		System.out.println(new DateUtil().now());
	}
	
}
